package com.srx.openfeign.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 插入图书传输层对象
 * <p>
 * 本类为mysql插入es数据库的传输层
 *
 * @author srx
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookDTO
{

    /**
     * 图书ID
     */
    private Integer id;
    /**
     * 图书名称
     */
    private String name;
    /**
     * 作者
     */
    private String author;
    /**
     * ISBN编号
     */
    private String isbn;
    /**
     * 分类ID
     */
    @JsonProperty("category_id")
    private Integer categoryId;



	public BookDTO(Integer id, String name, String author)
	{
		this.id = id;
		this.name = name;
		this.author = author;
		this.isbn = isbn;
	}

}
